/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Morten J, Morten B & Jonas
 */
public class FaktureretVare {

    private int antal;
    private double prisHistorikKr;
    private double prisHistorikEu;
    private final Vare vare;

    public FaktureretVare(int antal, double prisHistorikKr, double prisHistorikEu, Vare vare) {
        this.antal = antal;
        this.prisHistorikKr = prisHistorikKr;
        this.prisHistorikEu = prisHistorikEu;
        this.vare = vare;
    }

    public int getAntal() {
        return antal;
    }

    public void setAntal(int antal) {
        this.antal = antal;
    }

    public double getPrisHistorikKr() {
        return prisHistorikKr;
    }

    public double getPrisHistorikEu() {
        return prisHistorikEu;
    }

    public void setPrisHistorikKr(double pris) {
        prisHistorikKr = pris;
    }

    public void setPrisHistorikEu(double pris) {
        prisHistorikEu = pris;
    }

    public Vare getVare() {
        return vare;
    }

    @Override
    public String toString() {
        return antal + "x " + vare.getVareNavn();
    }

}
